
#include <stdio.h>

#include "core.h"

using namespace cyclone;

int main(){

	
	Vector3 a(1,2,3);
	Vector3 b(4,5,6);

	Vector3 c;

	c = a.vectorProduct(b);

	printf("a: %f  %f  %f\n",a.x, a.y, a.z);
	printf("b: %f  %f  %f\n",b.x, b.y, b.z);

	if( c.x == 0.0 && c.y == 0.0 && c.z == 0.0 ){
		printf("Son Paralelos\n");
		return 0;
	} else {
		printf("No Son Paralelos\n");
	}

	printf("c: %f  %f  %f\n",c.x, c.y, c.z);

	printf("Recalculamos b\n");
	
	b = c.vectorProduct(a);

	printf("b: %f  %f  %f\n",b.x, b.y, b.z);

	printf("Normalizando\n");

	a.normalise();
	b.normalise();
	c.normalise();

	printf("a: %f  %f  %f\n",a.x, a.y, a.z);
	printf("b: %f  %f  %f\n",b.x, b.y, b.z);
	printf("c: %f  %f  %f\n",c.x, c.y, c.z);

return 0;
} 

